home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Button / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.2 KB  |  80 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //    Modified by:        M.Boetcher to accept Dropped and Pasted sounds
  8. //
  9. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef FRAME_H
  14. #define FRAME_H
  15.  
  16. #ifndef FWFRAME_H
  17. #include "FWFrame.h"
  18. #endif
  19.  
  20. #ifndef FWDRGDRP_H
  21. #include "FWDrgDrp.h"
  22. #endif
  23.  
  24. //========================================================================================
  25. // Forward Declarations
  26. //========================================================================================
  27.  
  28. class COptionBehavior;
  29. class CButtonContent;
  30.  
  31. //========================================================================================
  32. //    class CButtonFrame
  33. //========================================================================================
  34.  
  35. class CButtonFrame : public FW_CFrame, FW_MDroppableFrame
  36. {
  37. //----------------------------------------------------------------------------------------
  38. //    Initialization/Destruction
  39. //
  40. public:
  41.      FW_DECLARE_CLASS
  42.     FW_DECLARE_AUTO(CButtonFrame)
  43.  
  44.     CButtonFrame(Environment* ev, 
  45.                     ODFrame* frame, 
  46.                     FW_CPresentation* presentation, 
  47.                     FW_CPart* part,
  48.                     CButtonContent* content);    
  49.     virtual ~CButtonFrame();
  50.  
  51. //----------------------------------------------------------------------------------------
  52. //    FW_CFrame overrides
  53. //
  54. public:
  55.     FW_CDropCommand*        NewDropCommand(Environment *ev, 
  56.                                     FW_CFrame* frame,
  57.                                     ODDragItemIterator* dropInfo, 
  58.                                     ODFacet* facet, 
  59.                                     const FW_CPoint& dropPoint);
  60.  
  61.     virtual void             Draw(Environment* ev, 
  62.                                     ODFacet* facet, 
  63.                                     ODShape* invalidShape);
  64.  
  65.     virtual FW_Boolean        RequestFocusSet(Environment *ev);
  66.  
  67.     virtual ODFocusSet*        GetFocusSet(Environment* ev) const;    
  68.     
  69.     virtual void             PostCreateViewFromStream(Environment* ev);
  70.  
  71. //----------------------------------------------------------------------------------------
  72. //    Data Members
  73. //
  74. private:
  75.     CButtonContent*            fContent;
  76.     COptionBehavior*        fOptionBehavior;
  77.     ODFocusSet*                fCurrentFocusSet;    // This is the current focus set
  78. };
  79.  
  80. #endif